import axios from 'axios'

let url: string = '';
if (process.env.NODE_ENV === 'development') {
  url = '/api'
} else if (process.env.NODE_ENV === 'production') {
  url = 'http://localhost:3000/api';
}
axios.defaults.baseURL = url;
console.log("环境变量", process.env)
export default axios